package com.simdo.g768.Mqtt;

import com.simdo.g768.Util.GsonUtil;

public class MqttMsg {

    private String topic;
    private MqttUeBean mqttUeBean;

    public MqttMsg(String topic, String message) {
        this.topic = topic;
        MqttUeBean person = GsonUtil.getPerson(message, MqttUeBean.class);
        person.setLongTime();
        this.mqttUeBean = person;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public MqttUeBean getMqttUeBean() {
        return mqttUeBean;
    }

    public void setMqttUeBean(MqttUeBean mqttUeBean) {
        this.mqttUeBean = mqttUeBean;
    }
}
